package com.example.houqin_oa.controller;

import com.example.comment_oa.pojos.PersonalEffects;
import com.example.comment_oa.response.AjaxResponse;
import com.example.houqin_oa.service.PersonalEffectsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:个人物品展示
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2022/10/20 20:39
 * @Entry_Name:my_springcloud_project01cangku
 */
@RestController
@CrossOrigin
@RequestMapping("/houqinOa")
public class EffectsController {

    @Autowired
    PersonalEffectsService personalEffectsService;

    @PostMapping("/Effects/EffectsAll")
    public AjaxResponse EffectsAll(@RequestBody PersonalEffects personalEffects){
        return AjaxResponse.success(personalEffectsService.EffectsAll(personalEffects));
    }

    @PostMapping("/Effects/UpkeepDraw")
    public AjaxResponse UpkeepDraw(@RequestBody PersonalEffects personalEffects){
        return AjaxResponse.success(personalEffectsService.UpkeepDraw(personalEffects));
    }

}
